xen.git
20 years agoRemoves redundant/unnecessary __vmread/__vmwrite.
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Sep 2005 10:11:02 +0000 (10:11 +0000)]
Removes redundant/unnecessary __vmread/__vmwrite.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
20 years agoParse vcpus for VMX guest.
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Sep 2005 09:58:15 +0000 (09:58 +0000)]
Parse vcpus for VMX guest.

Vcpus are passed to device model and vmx domain builder.

Signed-off-by: Yan Li <yanx.li@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoFix .hgignore and add missing vtpm patch file.
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Sep 2005 09:56:34 +0000 (09:56 +0000)]
Fix .hgignore and add missing vtpm patch file.

20 years agoThe vmx guest loading is broken from 6925 because of the new
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 16:13:01 +0000 (16:13 +0000)]
The vmx guest loading is broken from 6925 because of the new
DevController code.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoFix __save_flags() to not complain when smp_processor_id() is used
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 14:44:49 +0000 (14:44 +0000)]
Fix __save_flags() to not complain when smp_processor_id() is used
in a preemptible region (it is always safe).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 14:18:23 +0000 (14:18 +0000)]
merge?

20 years agoAdd support to build arch/ia64 xen kernels, also add pre/post link hooks in mkbuildtree.
cl349@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 14:18:01 +0000 (14:18 +0000)]
Add support to build arch/ia64 xen kernels, also add pre/post link hooks in mkbuildtree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix xenconsole when console page is >= 4GB.
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 14:09:07 +0000 (14:09 +0000)]
Fix xenconsole when console page is >= 4GB.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoPut_page on vmx_set_cr0 for multiple protected/real mode switch.
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 13:07:10 +0000 (13:07 +0000)]
Put_page on vmx_set_cr0 for multiple protected/real mode switch.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 09:43:46 +0000 (09:43 +0000)]
merge?

20 years agoFix vnc configuration issue for creating vmx guest.
cl349@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 09:43:29 +0000 (09:43 +0000)]
Fix vnc configuration issue for creating vmx guest.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSplit up docs. Signed-off-by: Robb Romans <3r@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 09:17:33 +0000 (09:17 +0000)]
Split up docs. Signed-off-by: Robb Romans <3r@us.ibm.com>

20 years agoAdd 64 bit support to the VTPM Tools plus do some minor cleanups.
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 09:08:26 +0000 (09:08 +0000)]
Add 64 bit support to the VTPM Tools plus do some minor cleanups.

The VTPM manager and VTPMs fully support both 32 and 64 bit OSes. The
tpm_emulator (provided for debugging on TPM-less machines) does not
support 64-bit kernels by default though. See the README for details on
how to use it on 64-bit kernels.

(Vinnie Scarlata, Intel Corporation)

Signed-off-by: Joe Cihula <joe.cihula@intel.com>
20 years agoFix an operand size bug in the VMX MMIO decoder.
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 09:05:03 +0000 (09:05 +0000)]
Fix an operand size bug in the VMX MMIO decoder.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
20 years agoDynamically generate the local apic entries in ACPI MADT table.
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Sep 2005 09:02:43 +0000 (09:02 +0000)]
Dynamically generate the local apic entries in ACPI MADT table.
The number of local apic entries is decided by the #vcpus passed
from the config file (eg./etc/xen/xmexample.vmx).

This feature is required by the SMP VMX domain.

Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
20 years agoAdd lomount to 'make uninstall' target. Remove miniterm,
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 17:10:20 +0000 (17:10 +0000)]
Add lomount to 'make uninstall' target. Remove miniterm,
as it's never installed on the Xen host.

20 years agoClean up 'make uninstall' target.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 16:14:18 +0000 (16:14 +0000)]
Clean up 'make uninstall' target.

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 16:02:54 +0000 (16:02 +0000)]
merge?

20 years agoFix kernel users of xs_write as well.
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 16:02:32 +0000 (16:02 +0000)]
Fix kernel users of xs_write as well.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoBetter gdb server documentation.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 15:43:38 +0000 (15:43 +0000)]
Better gdb server documentation.

20 years agoDo not build PAE by default. Reverts accidental previous
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 15:43:26 +0000 (15:43 +0000)]
Do not build PAE by default. Reverts accidental previous
checkin.

20 years agoFix xc_ptrace (live debug, not coredump debug) for 32-bit pae.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 15:21:09 +0000 (15:21 +0000)]
Fix xc_ptrace (live debug, not coredump debug) for 32-bit pae.
Clean up interfaces and add simple documentation for using
the domU debug interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFire watches once immediately upon registration.
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 14:47:56 +0000 (14:47 +0000)]
Fire watches once immediately upon registration.
It matches the model of programming used to avoid races with watches,
and also makes re-establishing watches on daemon restart easier.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix one more usage of xs_write.
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 14:36:15 +0000 (14:36 +0000)]
Fix one more usage of xs_write.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove iflag argument to xs_write
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 14:34:30 +0000 (14:34 +0000)]
Remove iflag argument to xs_write
xs_write with O_CREAT|O_EXCL causes problems over daemon restarts, since
it's not idempotent.
It turns out noone really needs the flags word at all, so get rid of it.
It's now as if everyone specified "O_CREAT".
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMake xs_mkdir an xs_rm idempotent.
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 14:25:29 +0000 (14:25 +0000)]
Make xs_mkdir an xs_rm idempotent.
When modifying libxenstore to transparently restart when the daemon dies,
it became apparent that life is simpler when all commands can simply be
restarted.  So this patch makes a slight semantic change to xs_rm and xs_mkdir:
xs_rm now succeeds if the file doesn't exist (as long as the parent exists),
and xs_mkdir succeeds if the directory already exists.
Noone should notice.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix gdb build script.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 14:06:49 +0000 (14:06 +0000)]
Fix gdb build script.

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 13:24:31 +0000 (13:24 +0000)]
merge?

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 13:24:13 +0000 (13:24 +0000)]
merge?

20 years agoDon't do device create on domain recreate.
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 13:23:22 +0000 (13:23 +0000)]
Don't do device create on domain recreate.
Also don't add XendDomainInfo object to XendDomain dictionary from
XendDomainInfo object but do it in XendDomain.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRevert accidental commit.
emellor@ewan [Mon, 19 Sep 2005 13:19:22 +0000 (14:19 +0100)]
Revert accidental commit.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUse DevController.allocateDeviceID rather than using a local variable.
emellor@ewan [Mon, 19 Sep 2005 12:44:05 +0000 (13:44 +0100)]
Use DevController.allocateDeviceID rather than using a local variable.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUse DevController.allocateDeviceID rather than using a local variable.
emellor@ewan [Mon, 19 Sep 2005 12:41:41 +0000 (13:41 +0100)]
Use DevController.allocateDeviceID rather than using a local variable.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRe-indent libxc to avoid hard tabs. Also, fix the PAE
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 11:06:05 +0000 (11:06 +0000)]
Re-indent libxc to avoid hard tabs. Also, fix the PAE
domain builder to correctly write PTEs that map pages
above 4GB.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove last remaining "import controller" occurences.
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 11:01:18 +0000 (11:01 +0000)]
Remove last remaining "import controller" occurences.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 10:51:05 +0000 (10:51 +0000)]
merge?

20 years agoFix VMX domains not cleaning up properly, since some page refncts are
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 09:14:41 +0000 (09:14 +0000)]
Fix VMX domains not cleaning up properly, since some page refncts are
not zero. One reason for this is that in function shadow_set_l1e(),
before calling function shadow_update_min_max(), one should call
__shadow_get_sl2e() again, since the sl2 entry may be changed.

Signed-off-by: Xin Xiaohui <Xiaohui.xin@intel.com>
Signed-off-by: Li Chengyuan <Chengyuan.li@intel.com>
20 years agoThe domain structure maintains several shadow mode stats,
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Sep 2005 09:00:26 +0000 (09:00 +0000)]
The domain structure maintains several shadow mode stats,
such as shadow page counts for l1 & l2, hl2 tables, snapshots,
etc.  These counts are not decremented properly when we
free shadow pages.  The following patch fixes this problem.

Signed-off-by: Khoa Huynh <khoa@us.ibm.com>
20 years agoAdd and use XendDomainInfo.getBackendFlags to decouple image.py from the
emellor@ewan [Sun, 18 Sep 2005 21:42:02 +0000 (22:42 +0100)]
Add and use XendDomainInfo.getBackendFlags to decouple image.py from the
internals of XendDomainInfo, in preparation for changing the latter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoChanged dangerous default parameter values where used to use None instead.
emellor@ewan [Sun, 18 Sep 2005 21:41:12 +0000 (22:41 +0100)]
Changed dangerous default parameter values where used to use None instead.
Renamed variables type and ord since these clash with built-in names.  Renamed
unused variables to mark them as such.  Changed scheduler.py to use *args and
**kwargs rather than the strange non-idiomatic imitation of the same.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRemove the complexity of the config_handlers mechanism in favour of a simple
emellor@ewan [Sun, 18 Sep 2005 17:21:12 +0000 (18:21 +0100)]
Remove the complexity of the config_handlers mechanism in favour of a simple
configure_maxmem method. The config_handlers mechanism was trying to be a
general configuration-registration framework, but that functionality was
unused and confusing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdded allocateDeviceID, which uses the store to keep track of per-domain,
emellor@ewan [Sun, 18 Sep 2005 17:18:52 +0000 (18:18 +0100)]
Added allocateDeviceID, which uses the store to keep track of per-domain,
per-device-class device IDs on behalf of the DevController subclasses.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMove definition of xc and xend to avoid confusing pylint.
emellor@ewan [Sun, 18 Sep 2005 15:00:24 +0000 (16:00 +0100)]
Move definition of xc and xend to avoid confusing pylint.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRenamed XendDomainInfo.getTargetMemory to getMemoryTarget, for consistency with
emellor@ewan [Sun, 18 Sep 2005 14:50:12 +0000 (15:50 +0100)]
Renamed XendDomainInfo.getTargetMemory to getMemoryTarget, for consistency with
XendDomainInfo.setMemoryTarget.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoReplaced the device handling mechanism used by XendDomainInfo. Superficially,
emellor@ewan [Sun, 18 Sep 2005 14:41:28 +0000 (15:41 +0100)]
Replaced the device handling mechanism used by XendDomainInfo.  Superficially,
this looks like the resurrection of DevController from controller.py, but the
mechanism is actually very different.  Device handling is now stateless inside
xend, relying on the store for state management, reducing DevController
instances to one-shot lifetimes.  Dev and its subclasses have gone completely.
The device creation code itself has moved from XendDomainInfo.createDevice into
DevController subclasses, and the previous contents of the subclasses has been
discarded (these subclasses were no longer being called, so all this code was
dead).

XendDomainInfo.getDeviceIds has gone, as it was unused.
XendDomainInfo.delete_device has been subsumed by XendDomainInfo.destroyDevice;
since device handling is now stateless inside xend, the distinction between
device 'deletion' and device 'destruction' is meaningless.

The s-expression describing devices has gone, as this information is no longer
available to xend in the same way, and seems to be unused.  If it is required,
it can be reinstated by loading device information from Xen or the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdd behaviour to the remove methods to remove the transaction's path itself. This...
emellor@ewan [Sun, 18 Sep 2005 13:42:13 +0000 (14:42 +0100)]
Add behaviour to the remove methods to remove the transaction's path itself.  This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.

20 years agoIn all cases, move the creation of a new transaction outside of the block
emellor@ewan [Sun, 18 Sep 2005 09:09:22 +0000 (10:09 +0100)]
In all cases, move the creation of a new transaction outside of the block
handling exceptions raised inside that transaction.  If the creation (start) of
the transaction fails, then t has not been assigned, and in any case no
transaction has been created, so it is wrong to attempt to abort that
(non-existent) transaction.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoTrivial gdb build fix from Leendert.
kaf24@firebug.cl.cam.ac.uk [Sun, 18 Sep 2005 07:38:25 +0000 (07:38 +0000)]
Trivial gdb build fix from Leendert.

20 years agoRemove assignment to unused field memory_target.
emellor@ewan [Sat, 17 Sep 2005 21:34:34 +0000 (22:34 +0100)]
Remove assignment to unused field memory_target.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUse XendDomainInfo.getDomain, getName to decouple XendDomain from the internals
emellor@ewan [Sat, 17 Sep 2005 20:00:33 +0000 (21:00 +0100)]
Use XendDomainInfo.getDomain, getName to decouple XendDomain from the internals
of XendDomainInfo, prior to changing those internals.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRemove unused restoreFromDB, saveToDB.
emellor@ewan [Sat, 17 Sep 2005 19:23:53 +0000 (20:23 +0100)]
Remove unused restoreFromDB, saveToDB.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoReplace XendDomainInfo.setStoreChannel with XendDomainInfo.closeStoreChannel.
emellor@ewan [Sat, 17 Sep 2005 17:09:31 +0000 (18:09 +0100)]
Replace XendDomainInfo.setStoreChannel with XendDomainInfo.closeStoreChannel.
setStoreChannel was only ever called with channel=None (implying that the
current channel would be closed) so the other code there was superfluous.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoAdded getVCpuCount to XendDomainInfo and use that and getName, getDomain,
emellor@ewan [Sat, 17 Sep 2005 16:34:58 +0000 (17:34 +0100)]
Added getVCpuCount to XendDomainInfo and use that and getName, getDomain,
getTargetMemory inside image.py to decouple the latter from the internals of
the former.  Move the definition of xc inside image.py to please pylint.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoFix indentation.
emellor@ewan [Sat, 17 Sep 2005 15:11:49 +0000 (16:11 +0100)]
Fix indentation.

20 years agoAdded getTargetMemory, getSsidref methods to XendDomainInfo, and use these and
emellor@ewan [Sat, 17 Sep 2005 15:10:04 +0000 (16:10 +0100)]
Added getTargetMemory, getSsidref methods to XendDomainInfo, and use these and
getDomain, getName in SrvDomainDir, to decouple the latter from the internals of
the former, in preparation for changes internal to XendDomainInfo.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoIssue warning if doxygen is not installed.
emellor@ewan [Sat, 17 Sep 2005 12:59:35 +0000 (13:59 +0100)]
Issue warning if doxygen is not installed.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoChanged ssidref default to 0 when parsing config file.
emellor@ewan [Sat, 17 Sep 2005 09:52:31 +0000 (10:52 +0100)]
Changed ssidref default to 0 when parsing config file.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoAdded diagnostic message to exception when TypeError occurs on write.
emellor@ewan [Sat, 17 Sep 2005 09:49:14 +0000 (10:49 +0100)]
Added diagnostic message to exception when TypeError occurs on write.

20 years agoRemoved unused getDB method.
emellor@ewan [Sat, 17 Sep 2005 09:46:55 +0000 (10:46 +0100)]
Removed unused getDB method.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoMoved xroot variable to not confuse pylint (and me).
emellor@ewan [Sat, 17 Sep 2005 09:44:29 +0000 (10:44 +0100)]
Moved xroot variable to not confuse pylint (and me).

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoRemoved unused impotr and marked some parameters as unused.
emellor@ewan [Sat, 17 Sep 2005 09:42:49 +0000 (10:42 +0100)]
Removed unused impotr and marked some parameters as unused.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoRename feilds to fields throughout.
emellor@ewan [Sat, 17 Sep 2005 09:33:50 +0000 (10:33 +0100)]
Rename feilds to fields throughout.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoRemove unused import, and unused class TwistedAdapter. Mark one variable as
emellor@ewan [Sat, 17 Sep 2005 09:29:33 +0000 (10:29 +0100)]
Remove unused import, and unused class TwistedAdapter.  Mark one variable as
unused.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoAdded _1,.._5 to dummy-variables, so that we can specify multiple unused
emellor@ewan [Sat, 17 Sep 2005 09:22:42 +0000 (10:22 +0100)]
Added _1,.._5 to dummy-variables, so that we can specify multiple unused
parameters in our code.  Removed map and filter from bad-functions - I don't
think that we have any problem with functional programming styles!

Signed-off-by: Ewan Mellor<ewan@xensource.com>
20 years agoSmall cleanup to tpm split driver.
kaf24@firebug.cl.cam.ac.uk [Sat, 17 Sep 2005 08:26:11 +0000 (08:26 +0000)]
Small cleanup to tpm split driver.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
20 years agoRemove native tpm drivers from the linux sparse tree and replace
kaf24@firebug.cl.cam.ac.uk [Sat, 17 Sep 2005 08:25:30 +0000 (08:25 +0000)]
Remove native tpm drivers from the linux sparse tree and replace
with minimal patch in the automatically-applied patches/ directory.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
20 years agoCleanup domain listing on xend start. Fix reaper some more.
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 23:55:50 +0000 (23:55 +0000)]
Cleanup domain listing on xend start.  Fix reaper some more.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd bindings for xs_get_domain_path().
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 22:27:04 +0000 (22:27 +0000)]
Add bindings for xs_get_domain_path().
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't run reap() or domain_restarts() as side-effects of refresh.
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 20:12:42 +0000 (20:12 +0000)]
Don't run reap() or domain_restarts() as side-effects of refresh.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove dom0 setup code out of initial_refresh.
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 20:03:57 +0000 (20:03 +0000)]
Move dom0 setup code out of initial_refresh.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove pretty random cleanup code in _add_domain.
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 20:02:18 +0000 (20:02 +0000)]
Remove pretty random cleanup code in _add_domain.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoUse "vcpu" when referring to vcpus.
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 19:11:39 +0000 (19:11 +0000)]
Use "vcpu" when referring to vcpus.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMake dom0_enforce_cpus() use vcpu_hotplug rather than directly modifying the sysfs...
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 19:08:36 +0000 (19:08 +0000)]
Make dom0_enforce_cpus() use vcpu_hotplug rather than directly modifying the sysfs entries.
Directly modifying the sysfs entries causes the xenstore state of
a cpu's availability to be incorrect.  Also slightly modify the
dom0-cpus description in the xend-config.  Rather than specifying which
dom0 vcpus are to be used, it is now a target of how many vcpus to use
as pinvcpu ops are the preferred method for setting which physical cpu a
vcpu uses.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 18:59:59 +0000 (18:59 +0000)]
merge?

20 years agoFix the control panel problem.
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 18:50:50 +0000 (18:50 +0000)]
Fix the control panel problem.
The new image handling structure broke the vmx guest loading.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 18:07:50 +0000 (18:07 +0000)]
merge?

20 years agoCleanup domain reaper and domain destruction functions.
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 18:06:42 +0000 (18:06 +0000)]
Cleanup domain reaper and domain destruction functions.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix setStoreChannel(None) - fixes cleanup on destroy.
cl349@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 18:05:03 +0000 (18:05 +0000)]
Fix setStoreChannel(None) - fixes cleanup on destroy.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoClean up and re-indent netback driver.
kaf24@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 13:27:01 +0000 (13:27 +0000)]
Clean up and re-indent netback driver.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoClean up and re-indent netfront.c
kaf24@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 13:06:49 +0000 (13:06 +0000)]
Clean up and re-indent netfront.c

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoGrant-refrence allocation pools and tracking tables should be
kaf24@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 12:47:40 +0000 (12:47 +0000)]
Grant-refrence allocation pools and tracking tables should be
per interface in netfront, not global. This fixes various
bug reports including Bugzilla #183.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
20 years agodirect_remap_pfn_range() takes a vm_area_struct rather than
kaf24@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 10:57:31 +0000 (10:57 +0000)]
direct_remap_pfn_range() takes a vm_area_struct rather than
an mm_struct. Also it sets VM_RESERVED and VM_IO, just like
generic remap_pfn_range() in mm/memory.c.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agodistclean target added to root makefile. From rusty.
kaf24@firebug.cl.cam.ac.uk [Fri, 16 Sep 2005 09:16:24 +0000 (09:16 +0000)]
distclean target added to root makefile. From rusty.

20 years agoSimplify backend flag parsing.
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 19:46:14 +0000 (19:46 +0000)]
Simplify backend flag parsing.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoExport block device read-only state into store.
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 18:39:17 +0000 (18:39 +0000)]
Export block device read-only state into store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix bootloader support some more.
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 18:38:44 +0000 (18:38 +0000)]
Fix bootloader support some more.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 17:40:16 +0000 (17:40 +0000)]
merge?

20 years agoMaybe fix running bootloader after reboot.
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 17:19:08 +0000 (17:19 +0000)]
Maybe fix running bootloader after reboot.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoStart cleaning up grant tables. gnttab_donate now called
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 17:09:50 +0000 (17:09 +0000)]
Start cleaning up grant tables. gnttab_donate now called
gnttab_transfer, with slightly rationalised interface and
simpler implementation inside Xen. This is a tiny chip off
the tip of a very big iceberg. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 16:55:32 +0000 (16:55 +0000)]
merge?

20 years agoUpdate image handling code for xstransact.
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 16:55:05 +0000 (16:55 +0000)]
Update image handling code for xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoActually update domain info when dom_get() succeeds.
shand@ubuntu.eng.hq.xensource.com [Thu, 15 Sep 2005 16:15:48 +0000 (08:15 -0800)]
Actually update domain info when dom_get() succeeds.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoFix the libxc Makefile.
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 13:17:24 +0000 (13:17 +0000)]
Fix the libxc Makefile.

20 years agoadd support for ipv6 address in choose_vnc_display function
vh249@arcadians.cl.cam.ac.uk [Thu, 15 Sep 2005 12:21:23 +0000 (12:21 +0000)]
add support for ipv6 address in choose_vnc_display function
getting the port from the latest field, not the first one.
fix suggested by Nickolai Zeldovich. close bug #231

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agofix build, strings spanning multiple lines are no longer supported
vh249@arcadians.cl.cam.ac.uk [Thu, 15 Sep 2005 12:19:00 +0000 (12:19 +0000)]
fix build, strings spanning multiple lines are no longer supported

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 09:21:22 +0000 (09:21 +0000)]
merge?

20 years agoDon't special case getDomainMemory for ia64.
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 09:21:10 +0000 (09:21 +0000)]
Don't special case getDomainMemory for ia64.
This makes how we account the "system pages" consistent.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoBetter build fix.
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 09:13:21 +0000 (09:13 +0000)]
Better build fix.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoLike IA32 PAE xenlinux, we also need make VMX guest 1:1 page table PGD
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 09:12:03 +0000 (09:12 +0000)]
Like IA32 PAE xenlinux, we also need make VMX guest 1:1 page table PGD
page below 4G.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoCleanup timeout code for when socket is already in use.
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 08:59:35 +0000 (08:59 +0000)]
Cleanup timeout code for when socket is already in use.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>